home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / sys / dk.h < prev    next >
C/C++ Source or Header  |  1995-02-14  |  2KB  |  71 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /*
  8.  * HISTORY
  9.  * $Log:    dk.h,v $
  10.  * Revision 2.4  89/05/30  10:42:51  rvb
  11.  *     No floats for mips kernels.
  12.  *     [89/04/20            af]
  13.  * 
  14.  * Revision 2.3  89/03/09  22:03:17  rpd
  15.  *     More cleanup.
  16.  * 
  17.  * Revision 2.2  89/02/25  17:52:44  gm0w
  18.  *     Changes for cleanup.
  19.  * 
  20.  * 10-Mar-88  John Seamons (jks) at NeXT
  21.  *    Added dk_bps (bytes per second) in order to avoid using
  22.  *    the floating point dk_mspw (milliseconds per word).
  23.  *
  24.  */
  25. /*
  26.  * Copyright (c) 1982, 1986 Regents of the University of California.
  27.  * All rights reserved.  The Berkeley software License Agreement
  28.  * specifies the terms and conditions for redistribution.
  29.  *
  30.  *    @(#)dk.h    7.1 (Berkeley) 6/4/86
  31.  */
  32.  
  33. #ifndef    _SYS_DK_H_
  34. #define _SYS_DK_H_
  35.  
  36. /*
  37.  * Instrumentation
  38.  */
  39.  
  40. #define CPUSTATES    4
  41.  
  42. #define CP_USER        0
  43. #define CP_NICE        1
  44. #define CP_SYS        2
  45. #define CP_IDLE        3
  46.  
  47. #define DK_NDRIVE    4
  48.  
  49. #ifdef    KERNEL
  50. extern long    cp_time[CPUSTATES];
  51. extern int    dk_ndrive;
  52. extern int    dk_busy;
  53. extern long    dk_time[DK_NDRIVE];
  54. extern long    dk_seek[DK_NDRIVE];
  55. extern long    dk_xfer[DK_NDRIVE];
  56. extern long    dk_wds[DK_NDRIVE];
  57. #if    NeXT
  58. extern long    dk_bps[DK_NDRIVE];
  59. #endif    NeXT
  60. #ifdef    mips
  61. extern int    dk_mspw[DK_NDRIVE];
  62. #else    mips
  63. extern float    dk_mspw[DK_NDRIVE];
  64. #endif    mips
  65.  
  66. extern long    tk_nin;
  67. extern long    tk_nout;
  68. #endif    KERNEL
  69. #endif    _SYS_DK_H_
  70.  
  71.